﻿using System;
using System.Data;
using System.Collections.Generic;
using SME.Food.Surperise.DAL;
using SME.Food.Surperise.Model;

namespace SME.Food.Surperise.BLL
{
	/// <summary>
	/// Bas_User
	/// </summary>
	public partial class Bas_User_BLL
	{
        private Bas_User_DAL dal = new Bas_User_DAL();
		public Bas_User_BLL()
		{}
		#region  BasicMethod

		/// <summary>
		/// 得到最大ID
		/// </summary>
		public int GetMaxId()
		{
			return dal.GetMaxId();
		}

		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int ID)
		{
			return dal.Exists(ID);
		}

		/// <summary>
		/// 增加一条数据
		/// </summary>
		public int  Add(Bas_User_Model model)
		{
			return dal.Add(model);
		}
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="passWord"></param>
        /// <param name="userNo"></param>
        /// <returns></returns>
        public bool Update(string passWord, string userNo)
	    {
            return dal.Update(passWord, userNo);
	    }

	    /// <summary>
		/// 更新一条数据
		/// </summary>
        public bool Update(Bas_User_Model model)
		{
			return dal.Update(model);
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public bool Delete(int ID)
		{
			return dal.Delete(ID);
		}
		/// <summary>
		/// 删除一条数据
		/// </summary>
		public bool DeleteList(string IDlist )
		{
			return dal.DeleteList(IDlist );
		}

		/// <summary>
		/// 得到一个对象实体
		/// </summary>
        public Bas_User_Model GetModel(string ID)
		{
			return dal.GetModel(ID);
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
			return dal.GetList(strWhere);
		}
		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetAllList()
		{
			return GetList("");
		}

		#endregion  BasicMethod
		#region  ExtensionMethod

		#endregion  ExtensionMethod
	}
}

